#include "LCD.h"

LCD::LCD() {
    _displaySize = "11.6";
    _displayModel = "super";
}

void LCD::print() {
    cout << "LCD: " << endl;
    cout << "\t displayModel:" << _displayModel << endl;
    cout << "\t displaySize:" << _displaySize << " inch " << endl;
}

int LCD::save(YAML::Node& node) {
    node["LCD"] = YAML::Node(YAML::NodeType::Map);
    node["LCD"]["displayModel"] = _displayModel;
    node["LCD"]["displaySize"] = _displaySize;
    return 0;
}

int LCD::setDisplayModel(std::string size) {
    _displaySize = size;
    return 0;
}

void LCD::setDisplaySize(std::string size) {
    _displaySize = size;
}
